//
//  CartoonJapanData.m
//  IMYWebView
//
//  Created by Gollum on 16/09/24
//  Copyright (c) IMY. All rights reserved.
//

#import "CartoonJapanData.h"
#import "CartoonJapanDetailData.h"

@implementation CartoonJapanData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [CartoonJapanDetailData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray <CartoonJapanDetailData *>*japanData = [NSMutableArray array];
    NSArray *array = value;
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in array) {
            CartoonJapanDetailData *data = [CartoonJapanDetailData modelWithDic:dic];
            [japanData addObject:data];
        }
        _data = japanData;
    }
}
@end
